<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<div class="subnav">
  <div class="content-menu ib-a blue line-x"> 
  <a href='{:U("Index/index")}' class="add fb"><em>模型管理</em></a>　 
  <a class="on" href="javascript:;"><em>添加模型</em></a>
  </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<script type="text/javascript">
<!--
	$(function(){
		$.formValidator.initConfig({autotip:true,formid:"myform"});
		$("#name").formValidator({onshow:"请输入模型名称",onfocus:"请输入模型名称",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入模型名称"});
	})
//-->
</script>
<div class="pad-lr-10">
<div class="table-list">
<form action="{:U("Index/edit")}" method="post" id="myform">
<fieldset>
	<legend>基本信息</legend>
	<table width="100%"  class="table_form">
  <tr>
    <th width="120">模型名称：</th>
    <td class="y-bg"><input type="text" class="input-text" name="name" id="name" size="30" value="{$data.name}" /></td>
  </tr>

  <tr>
    <th>模型表键名：</th>
    <td class="y-bg"><input type="text" class="input-text" name="tablename" id="tablename" size="30" value="{$data.tablename}"  disabled="disabled"/></td>
  </tr>
    <tr>
    <th>描述：</th>
    <td class="y-bg"><input type="text" class="input-text" name="description" id="description" value="{$data.description}"  size="30"/></td>
  </tr>

</table>
</fieldset>
<div class="bk15"></div>
    <div class="btn">
    <input type="submit" class="button" id="dosubmit" name="dosubmit" value="提交" />
    <input type="reset" value="重置" class="button">
    </div>
    <input type="hidden" value="{$data.modelid}" name="modelid" />
</form>
  <div id="pages"> </div>
</div>
<script language="JavaScript">
<!--
	function load_file_list(id) {
		$.getJSON('?m=admin&c=category&a=public_tpl_file_list&style='+id+'&catid=', function(data){ 
		$('#category_template').html(data.category_template);
		$('#list_template').html(data.list_template);
		$('#show_template').html(data.show_template);
		});
	}
	//-->
</script>
</body>
</html>